package com.example.demo.service.impl;

import com.example.demo.bean.CheckCode;
import com.example.demo.service.OneKeyCommentService;
import com.example.demo.service.OssService;
import com.example.demo.utils.JWLoginUtil;

import java.io.InputStream;
import java.util.ArrayList;


public class OneKeyCommentServiceImpl implements OneKeyCommentService {


    private JWLoginUtil jwLogin = new JWLoginUtil();

    private OssService ossService = new OssServiceImpl();


    @Override
    public int loginJw(String user, String pwd, String code,String cookie) {
        return jwLogin.Login_JW(user, pwd, code,cookie);
    }

    @Override
    public ArrayList<String[]> getNeedCommentList() {
        return jwLogin.getOnekey_comment_info();
    }

    @Override
    public int oneKeyComment(ArrayList<String[]> needCommentList) {
        return jwLogin.onekey_comment(needCommentList);
    }
}
